
import Vue from 'vue';
import VueRouter from 'vue-router';
import CampusBinhai from '../views/CampusBinhai.vue';
import CampusChashan from '../views/CampusChashan.vue';
import StudentSystem from '../views/StudentSystem.vue'; // 确认文件存在且路径正确
import CampusYueqing from '../views/CampusYueqing.vue'; // 确认文件存在且路径正确

import wuhaolou from '../views/wuhaolou.vue'; // 确认文件存在且路径正确
import liuhaolou from '../views/liuhaolou.vue'; // 确认文件存在且路径正确
import qihaolou from '../views/qihaolou.vue'; // 确认文件存在且路径正确

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: CampusBinhai
  },
  {
    path: '/StudentSystem',
    name: 'StudentSystem',
    component: StudentSystem
  },
  {
    path: '/CampusYueqing',
    name: 'CampusYueqing',
    component: CampusYueqing
  },
  {
    path: '/CampusChashan',
    name: 'CampusChashan',
    component: CampusChashan,
    children:[
      {
        path: 'wuhaolou',
    component: wuhaolou,
      },
        {
          path: 'liuhaolou',
      component: liuhaolou,
        },
        {
          path: 'qihaolou',
      component: qihaolou,
        }
      ]
   },

  
]

const router = new VueRouter({
  routes
})

export default router
